package com.pt5.pthouduan.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljx
 * @since 2025-04-14
 */
@TableName("user_torrents")
public class UserTorrents implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("userid")
    private Long userid;

   // @TableId("torrentid")
    private Long torrentid;

    private Long uploaded;

    private Long remaining;

    private Boolean isSeeder;

    private Boolean isLeecher;

    private Boolean completed;

    private LocalDateTime lastAction;

    private Long userTorrentDownload;

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getTorrentid() {
        return torrentid;
    }

    public void setTorrentid(Long torrentid) {
        this.torrentid = torrentid;
    }

    public Long getUploaded() {
        return uploaded;
    }

    public void setUploaded(Long uploaded) {
        this.uploaded = uploaded;
    }

    public Long getRemaining() {
        return remaining;
    }

    public void setRemaining(Long remaining) {
        this.remaining = remaining;
    }

    public Boolean getIsSeeder() {
        return isSeeder;
    }

    public void setIsSeeder(Boolean isSeeder) {
        this.isSeeder = isSeeder;
    }

    public Boolean getIsLeecher() {
        return isLeecher;
    }

    public void setIsLeecher(Boolean isLeecher) {
        this.isLeecher = isLeecher;
    }

    public Boolean getCompleted() {
        return completed;
    }

    public void setCompleted(Boolean completed) {
        this.completed = completed;
    }

    public LocalDateTime getLastAction() {
        return lastAction;
    }

    public void setLastAction(LocalDateTime lastAction) {
        this.lastAction = lastAction;
    }

    public Long getUserTorrentDownload() {
        return userTorrentDownload;
    }

    public void setUserTorrentDownload(Long userTorrentDownload) {
        this.userTorrentDownload = userTorrentDownload;
    }

    @Override
    public String toString() {
        return "UserTorrents{" +
        "userid = " + userid +
        ", torrentid = " + torrentid +
        ", uploaded = " + uploaded +
        ", remaining = " + remaining +
        ", isSeeder = " + isSeeder +
        ", isLeecher = " + isLeecher +
        ", completed = " + completed +
        ", lastAction = " + lastAction +
        ", userTorrentDownload = " + userTorrentDownload +
        "}";
    }
}
